Skip to content

Conversation

@m-blaha
Copy link
Member

@m-blaha m-blaha commented Jan 12, 2026

Fixes: #2924

@m-blaha m-blaha requested a review from a team as a code owner January 12, 2026 10:56
@m-blaha m-blaha requested review from nforro and removed request for a team January 12, 2026 10:56
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the dist-git-branch to the Testing Farm context for downstream jobs, which is a useful addition for test environment context. The implementation is correct, and a new unit test has been added to verify the change. I've made one minor suggestion in the test file to combine multiple import statements from the same module for better code style and readability. Overall, great work!

Comment on lines +50 to 55
from packit_service.worker.helpers.testing_farm import (
DownstreamTestingFarmJobHelper,
)
from packit_service.worker.helpers.testing_farm import (
TestingFarmClient as TFClient,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve readability and adhere to Python's style guidelines (PEP 8), it's better to combine multiple imports from the same module into a single statement.

from packit_service.worker.helpers.testing_farm import (
    DownstreamTestingFarmJobHelper,
    TestingFarmClient as TFClient,
)

@centosinfra-prod-github-app
Copy link
Contributor

"tmt": {
"context": {
"distro": distro,
"dist-git-branch": self.koji_build.target,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

target isn't always equal to branch name. There can be a eln build from the rawhide branch (and other cases, but those shouldn't really be initiated by Packit, so we can ignore them).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, thanks. Will try to find a better approach.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just noticed there is an alternative solution - #2935 . Is this appproach correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

distro context for epel10/epel10.X are not distinguishable

2 participants